//
//  BroardCast.m
//  oc_24
//
//  Created by 楼楚 on 15/9/17.
//  Copyright (c) 2015年 Chu Lou. All rights reserved.
//

#import "BroardCast.h"
static BroardCast *br = nil;


@implementation BroardCast
+ (BroardCast *) shardeBroaedCast
{
    if ( br == nil ) {
        br = [[[self class]alloc]init ];
    
    }
    return  br;
}
- (void) repeatSendMessage
{
    [NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(sendMessage) userInfo:nil repeats:YES];
}
- (void) sendMessage
{
//      1. 取得当前系统的一个通知中心
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    
    NSDictionary *pram = @{@"UserID":@"567",@"UserName":@"hehehe"};
//    2. 发送广播
    [center postNotificationName:@"fm918" object:self userInfo:pram];
}

@end
